  
 
const api_1 = {
	url: window.use_url,
}

const tbs = {
	api_1_line: "T_MapLine", //路线划分
	api_1_label: "T_MapLabel", //标记点
	api_1_label_type: "T_Label", //标记点分类 
};


//获取数据
const h_api_get = (tb) => {
	return {
		"title": "query",
		"tableName": tb,
	}
}

const h_api_get1_post = (tb) => {
	return {
		"title": "getLuoTuoData",
		"method": "post",
		"urlstr": tb,
	}
}

const h_api_get1_get = (tb) => {
	return {
		"title": "getLuoTuoData",
		"method": "GET",
		"urlstr": tb,
	}
}

//保存新数据
const h_api_add = (tb, dat) => {
	return {
		"title": "saveDataDB",
		"tableName": tb,
		"data": JSON.stringify(dat),
	}
}
//保存新数据
const h_api_del = (tb, id) => {
	return {
		"title": "del",
		"tableName": tb,
		"ID": id,
	}
}


const api = {
	h_api_add,
	h_api_del,
	h_api_get1_get,
	h_api_get1_post,
	h_api_get,
	api_1,
	tbs,
}

export default api;
